package cl.vixionarios.biotika.properties;

import java.io.InputStream;
import java.util.Properties;

public class Propiedades {
	static private String JNDI_NAME;
	static public String DBTYPE = "postgresql";
	
	static{
		 try {
			 
			 	String path = "/cl/vixionarios/biotika/properties/application.properties";
				InputStream in = Propiedades.class.getResourceAsStream(path);			
				Properties props = new Properties();    
				props.load(in);
				JNDI_NAME = props.getProperty("JNDI_NAME");
			 	
		     }catch (Exception e){
		    	 System.out.println("catch clase Properties");
		    	 e.printStackTrace();
		     }
	}
	
	static public String JNDI_NAME(){
		if(JNDI_NAME==null)
			new Propiedades();
		
		return JNDI_NAME;
	}
	
}
